{% extends "root_base.html" %}{% block content_root_base %}
	<div id="addform_editcategory_root"><p><strong>添加分类：</strong></p><form action="editcategory_root.html" method="post">
		<input type="text" id="add_name_category_text" name="add_name_category_text" />
		<input type="submit" value="添加" />
	</form></div>
	<p><strong>修改/删除分类</strong></p>
	<table class="width_full" border="0">
	<tr><td><strong>ID号</strong></td><td><strong>分类名称/修改</strong></td><td><strong>删除</strong></td><td align="right"><strong>提交</strong></td></tr>
	{% for category in categories %}
		<form action="/editcategory_root.html" method="post"><tr>
			<td>{{ category.key.id }}</td>
			<td><input type="text" value="{{ category.name }}" name="name_category_text" /></td>
			<td><input type="hidden" value="{{ category.key }}" name="key_category_hidden" />
			<input type="checkbox" value="delete" name="delete_category_checkbox" />&nbsp;删除</td>
			<td align="right"><input type="submit" onclick="return confirm('确定要修改吗？');" value="提交" /></td>
		</tr></form>
	{% endfor %}</table>
{% endblock %}
